package com.xbkj.pgrp.server.model.common.pk;

import lombok.Getter;
import lombok.Setter;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Erupt(
      name = "主键生成序列",
        primaryKeyCol = "type"
)
@Setter
@Getter
@Entity
public class SeriesModel{
    @EruptField
    @Column(name = "type",length = 512)
    @Id
    private String type;

    @EruptField
    @Column(name = "series", nullable = false)
    private Long series;

    @EruptField
    @Column(name = "date", nullable = false)
    private String date;
}
